﻿package com.saint {
	
	import flash.display.Shape;
	import flash.display.Sprite;
	import flash.geom.Rectangle;
	
	/**
	 * ...
	 * @author wattonn
	 */
	
	
	public class MotionPoint extends Sprite {
		
		private var activeDot:		Shape;
		private var colour:			int = 0xFFFFFF;
		private var radius:			int = 8;
		
		public function MotionPoint() {
			activeDot = new Shape();
			
			//activeDot.graphics.lineStyle(0, colour);
			activeDot.graphics.beginFill(colour);
			
			activeDot.graphics.drawCircle	(	0, 
												0, 
												radius
											);
			addChild(activeDot);
		}
		
		public function update(motionArea:Rectangle):void {
			activeDot.x = motionArea.x + (motionArea.width / 2);
			activeDot.y = motionArea.y + (motionArea.height / 2);
		}
		
	}

}